projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1ef2b6
)
checkpatch: remove unnecessary + after {8,8}
author
Joe Perches
<
[email protected]
>
Tue, 23 Sep 2014 10:41:02 +0000
(12:41 +0200)
committer
Tom Rini
<
[email protected]
>
Thu, 25 Sep 2014 13:31:24 +0000
(09:31 -0400)
Pick the following commit from Linux kernel:
commit
66cb4ee0e52ca721f609fd5eec16187189ae5fda
Author: Joe Perches <
[email protected]
>
Date: Wed Sep 10 09:40:47 2014 +1000
checkpatch: remove unnecessary + after {8,8}
There's a useless "+" use that needs to be removed as perl 5.20 emits a
"Useless use of greediness modifier '+'" message each time it's hit.
Signed-off-by: Marek Vasut <
[email protected]
>
Cc: Tom Rini <
[email protected]
>
scripts/checkpatch.pl
patch
|
blob
|
history
diff --git
a/scripts/checkpatch.pl
b/scripts/checkpatch.pl
index 3fed5e4694f8aec4cd9d074f423f331d142332dc..74db2e24fc5e928006c4e7ee7f11c0e75dfd5e9c 100755
(executable)
--- a/
scripts/checkpatch.pl
+++ b/
scripts/checkpatch.pl
@@
-2148,7
+2148,7
@@
sub process {
"please, no space before tabs\n" . $herevet) &&
$fix) {
while ($fixed[$linenr - 1] =~
- s/(^\+.*) {8,8}
+
\t/$1\t\t/) {}
+ s/(^\+.*) {8,8}\t/$1\t\t/) {}
while ($fixed[$linenr - 1] =~
s/(^\+.*) +\t/$1\t/) {}
}